//
//  YLMallGoodsCollectionViewCell.m
//  YLFinanceService
//
//  Created by she1323 on 2017/9/27.
//  Copyright © 2017年 she1323. All rights reserved.
//

#import "YLMallGoodsCollectionViewCell.h"
#import "YLMallGoodModel.h"
#import <UIImageView+WebCache.h>
@interface YLMallGoodsCollectionViewCell()

@property (weak, nonatomic) IBOutlet UIImageView *iconView;

@property (weak, nonatomic) IBOutlet UILabel *productNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *pointLabel;

@end

@implementation YLMallGoodsCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(YLMallGoodModel *)model
{
    _model = model;
    [_iconView sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@", YLImageURL, model.pointProductIcon]]];
    _productNameLabel.text = model.pointProductName;
    _pointLabel.text = model.neetPoint;
}

+ (NSString *)cellID
{
    return @"YLMallGoodsCollectionViewCell";
}

@end
